/* 侧边栏样式 */
#sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, .75);
    padding: .75rem 1rem;
    font-weight: 500;
}

#sidebar .nav-link:hover {
    color: #fff;
}

#sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
}

/* 卡片样式 */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 表格样式 */
.table th {
    font-weight: 500;
    border-top: none;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
}

/* 按钮样式 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 图表容器 */
canvas {
    max-width: 100%;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 100;
        padding: 0;
    }
}

/* 管理后台专用样式 */
.admin-sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
    overflow-y: auto;
}

.admin-sidebar .list-group-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.admin-sidebar .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.admin-sidebar .list-group-item i {
    width: 20px;
    text-align: center;
}

/* 卡片样式 */
.admin-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.admin-card .card-header {
    background-color: #f8f9fa;
    border-bottom: none;
    font-weight: bold;
}

.admin-card .card-body {
    padding: 20px;
}

/* 表格样式 */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table tbody tr {
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 统计卡片 */
.stats-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card-primary {
    background-color: #0066cc;
    color: white;
}

.stats-card-success {
    background-color: #28a745;
    color: white;
}

.stats-card-info {
    background-color: #17a2b8;
    color: white;
}

.stats-card-warning {
    background-color: #ffc107;
    color: #212529;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-card .stats-title {
    font-size: 1rem;
    opacity: 0.8;
}

/* 表单样式 */
.admin-form .form-label {
    font-weight: 500;
}

.admin-form .form-control {
    border-radius: 5px;
    padding: 10px 15px;
}

.admin-form .form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

main {
    padding-top: 56px;
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.dashboard-card {
    transition: all 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .admin-sidebar {
        position: static;
        height: auto;
    }
    
    main {
        padding-top: 20px;
    }
    
    .navbar {
        position: static;
    }
} 